<?php

/**
 * Description of Answer_Patterns
 *
 * @author campa
 */
class Answer_Patterns {

   public function titleAnswerPatterns($title) {
      return "<h4 class='text-info' style='padding-top : 15px;'>" . $title . "</h3>";
   }

   public function elementAnswerPatterns($nodeName, $lineNo, $switch, $func = "Substitua por", $complement = "") {
      return "<p>O elemento <strong>" . $nodeName . "</strong> foi encontrado na linha " . $lineNo . " " . $complement . ". <strong>" . $func . "</strong> <code>" . $switch . "</code>.</p>";
   }

   public function attributeAnswerPatterns($nodeName, $lineNo, $switch, $func = "Substitua por", $complement = "") {
      return "<p>O atributo <strong>" . $nodeName . "</strong> foi encontrado na linha " . $lineNo . " " . $complement . ". <strong>" . $func . "</strong> <code>" . $switch . "</code>.</p>";
   }

   public function tableAnswer($old, $new) {
      return "<div class='table-responsive'><table class='table table-striped table-condensed table-bordered'><tr><th>Elemento Antigo</th><th>Elemento Novo</th></tr>"
           . "<tr><td><code>" . $old . "</code></td><td><code>" . $new . "</code></td></tr></table></div>";
   }

}
